package com.company.show.factorys.abstracts;


/**
 * @author yingfing
 * @create 2020--10--07 16:00
 * @describe
 */
public class FactoryProvider {
    public static AbstractFactory produce(String brand) {
        if ("micro".equalsIgnoreCase(brand)) {
            return new MicrosoftFactory();
        } else if ("logic".equalsIgnoreCase(brand)) {
            return new LogicFactory();
        } else {
            System.out.println("该工厂品牌为未创建");
            return null;
        }
    }
}
